<template>
	<view class="">
		<div class="homebj">
		    <div class="hdbmall">
		        <div class="hdbmlist" style="border: none">
		            <div class="hdbmlisttop">
		                <div class="hdbmlistname">填写评论</div>
		            </div>
		            <div class="hdbmlistbottom">
		                <input type="text" class="hdbmlistinput" v-model="content">
		            </div>
		        </div>
		    </div>
		    <div class="hdbmsave" @click="saveData()">发布评论</div>
		</div>
	</view>
</template>

<script>
	import web from '../../components/utils/request.js'
	export default{
		data(){
			return{
				wareId: 0,
				content: '',
			}
		},
		onLoad(options) {
			this.wareId=options.wareId;
		},
		onReady() {
			
		},
		methods:{
			getImg(url) {
				return 'https://ruianm.tour-ma.com/r/cms/www/m/huodong/img/' + url;
			},
			getImg1(url) {
				return 'https://ruianm.tour-ma.com' + url;
			},
			saveData(){
				var url = "/con_comments.jspx";
				var arg = {wareId:this.wareId,content:this.content};
				var that = this;
				web.httpPost(that, url, arg, function(res) {
					uni.navigateBack({
						delta:1
					})
				})
			}
		}
	}
</script>

<style>
	@import url("@/components/css/datascss.css");
</style>
